<?php
    //Normilizing and validating date and turning it to timestamp so that it can be processed later on.
    $date = trim($_POST['date']);
?>